﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Data.SqlClient;
using SuperSurvey.Entity;
namespace SuperSurvey.DAO
{
    public class RegisterDAO
    {
        public static string insertAccount = "sp_CreateAccount";

        public static SqlParameter[] InsertAccount(UserLogin ul, UserInformation uf)
        {
            SqlParameter[] arr = { new SqlParameter("@username", ul.UserName),
                                   new SqlParameter("@password",ul.Password),
                                   new SqlParameter("@fullname",uf.FullName),
                                   new SqlParameter("@birthdate",uf.BirthDate),
                                   new SqlParameter("@phone",uf.Phone),
                                   new SqlParameter("@email",uf.Email),
                                   new SqlParameter("@address",uf.Address),
                                   new SqlParameter("@country",uf.Country)
                                 };
            return arr;
        }
    }
}